package com.hdax.dm.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hdax.dm.entity.order.Order;
import com.hdax.dm.entity.order.OrderLinkUser;
import com.hdax.dm.entity.user.User;
import io.swagger.annotations.ApiOperation;
import org.joda.time.DateTime;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

public interface OrderPService extends IService<Order> {

    //添加订单
    boolean addOrder(Order order);

    //添加订单详情
    boolean addOrderLink(OrderLinkUser orderLinkUser);

    //根据订单号查看订单详情
    Order FindByOrderId(String orderNo);

    //删除订单信息
    Integer deleteOrderByNo(String orderNo);

    //修改超时订单状态
    Integer updateOrderType(String orderNo,Integer type);

    //我的大觅订单查询
    List<Order> queryorderlist(String keyword, Object orderTime, Object orderType, Long userId);

    //删除常用联系人
    boolean deleteticketbuyer(Long linkId);

    //查询用户信息
    User querypersoninfo(Long userId);

    //修改个人资料
    boolean modifypersoninfo(User user);

    //修改个人资料头像
    boolean modifypersoninfo1(Long id ,String imgUrl);

}
